// pages/untreated/untreated.js
Page({
    data:{
      imgList:[],
    },
    onLoad:function(options){
      let that=this
      const openID="oyZfX5PtI_48jnLsl_uGjUlWuOlw"
      wx.cloud.database().collection("leave").where({
        _openid:openID,
        cheak:false,
        pass:false
      }).get({
        success(res){
          that.setData({
            imgList:res.data
          }),
          console.log(res.data)
        }
      })
    },
    onDetail:function(e){
      console.log(e)
      var stuId = e.currentTarget.dataset.xsID;
      wx.navigateTo({
        url: '../rede/rede?id='+stuId,
      })
    }

})